# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=network-manager-applet
pkgver=1.18.0
pkgrel=0
pkgdesc="GTK network manager applet"
url="https://wiki.gnome.org/Projects/NetworkManager"
arch="all !s390x" # Limited by networkmanager-dev
license="GPL-2.0-or-later"
depends="dbus:org.freedesktop.Secrets"
makedepends="
	intltool
	gcr-dev
	gtk+3.0-dev
	jansson-dev
	libsecret-dev
	libgudev-dev
	libnotify-dev
	modemmanager-dev
	networkmanager-dev
	polkit-dev
	libnma-dev
	libappindicator-dev
	libdbusmenu-gtk3-dev
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/network-manager-applet/${pkgver%.*}/network-manager-applet-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--without-selinux \
		--enable-introspection
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="adca7c723600ec1cb2eed0110e369cf707fde1d64a81489440a167516d178a501fe883c08db06371b8aac896188eb2037a7577ecca721d764be33f4025a386d4  network-manager-applet-1.18.0.tar.xz"
